IListItemRenderer

Kind of class:interface
Inherits from:none
Classpath:gfx.interfaces.IListItemRenderer
File last modified:Tuesday, 29 June 2010, 09:03:27
The public interface that all item renderers must expose to be used in a list-type component, such as ScrollingList, TileList, etc. Note that this interface is not implemented in the existing components, and does not need to be implemented, it is just a reference.

Summary


Instance methods
  • setListData
    • Set the list data to an itemRenderer when the list changes, either by scrolling, or refreshing.
  • setData
    • The data in the DataProvider of the list component that the itemRenderer represents.

Instance methods

setData

function setData (
data:Object) : Void

The data in the DataProvider of the list component that the itemRenderer represents.
Parameters:
data:
A generic data object. This method is primarily just to store the value, but it can also customize the renderer based on its contents.

setListData

function setListData (
index:Number, label:String, selected:Boolean) : Void

Set the list data to an itemRenderer when the list changes, either by scrolling, or refreshing.
Parameters:
index :
The index of the data in the DataProvider that the itemRenderer represents
label :
The string label for the itemRenderer, determined by the labelField or labelFunction of the list component.
selected:
The selected state of the itemRenderer